﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Jui.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    瀚华小额贷款管理系统 - 黑名单
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="layout" class="page">
        <div id="navTab">
            <h2 class="contentTitle">
                黑名单</h2>
            <div class="pageHeader">
                <%using (Html.BeginForm("Add", "BlackList", new { url = "/blacklist/list" }, FormMethod.Post, new { onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
                  { %>
                电话号码：<input type="text" id="t0_Phone" name="t0_Phone" /><input type="submit" value="添加" />
                <%}%>
            </div>
            <%
                string tname = "blacklist";
                string url = "/blacklist/list";
            %>
            <div class="pageContent">
                <div class="panelBar">
                    <ul class="toolBar">
                        <li>
                            <%= JUIResult.ReturnOpen(tname, url, "1")%></li>
                        <li>
                            <%= JUIResult.ReturnDel(tname, url, "1")%></li>
                        <li class="line">line</li>
                        <li>状态：<%Html.RenderPartial("~/Views/Shared/ForStates.ascx"); %>
                            <input type="button" value="查询" onclick="loadList()" /></li>
                    </ul>
                </div>
                <!--加载列表-->
                <div id="listDt">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
        $(function () {
            loadList();
        });

        function loadList() {
            var htmlname = "listDt";
            $("#" + htmlname).load(
            "/BlackList/GetList",
            {
                phone: "",
                isValid: $("#states").val(),
                pageindex: pIndex,
                pagesize: pSize
            },
            function () {
                $("table.table", $("#" + htmlname)).jTable();
            });
        }
        function validateCallbackBlack(form, callback)
        {
            validateCallback(form, callback);
            loadList();
        }
    </script>
    <script type="text/javascript" src="/Scripts/pager.js"></script>
    <link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
</asp:Content>
